Received: from yvax2.byu.edu by maine.et.byu.edu; Wed, 2 Feb 1994 12:40:30 -0700
Return-Path: <bruce@pdh.com>
Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-3 #4169)
id <01H8ES5PDIO001A2QF@yvax.byu.edu>; Wed, 2 Feb 1994 12:39:43 MST
Received: from alaska.et.byu.edu by yvax.byu.edu (PMDF V4.3-3 #4169)
id <01H8ERPAAUQO8Y4YL7@yvax.byu.edu>; Wed, 2 Feb 1994 12:24:26 MST
Received: from yvax.byu.edu by alaska.et.byu.edu; Wed, 2 Feb 1994 12:23:27 -0700
Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-3 #4169)
id <01H8EQY4UYO0019YM1@yvax.byu.edu>; Wed, 2 Feb 1994 12:02:49 MST
Received: from snowbird.pdh.com (pdh.com) by yvax.byu.edu (PMDF V4.3-3 #4169)
id <01H8EQL7BGNK01A80J@yvax.byu.edu>; Wed, 2 Feb 1994 11:52:26 MST
Received: from boreal.pdh.com by snowbird.pdh.com
(NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0) id AA17943; Wed, 2 Feb 94 10:47:44 PST
Received: by boreal.pdh.com (NX5.67c/NX3.0X) id AA07562; Wed,
2 Feb 94 10:48:33 -0800
Received: by NeXT.Mailer (1.87.1)
Received: by NeXT Mailer (1.87.1)
Date: Wed, 02 Feb 1994 10:48:33 -0800
From: bruce@pdh.com (Bruce McKenzie)
Subject: Re: More class ideas
To: Doug McClure <ets!dougm@uunet.uu.net>
Cc: misckit@byu.edu
Reply-To: Bruce_McKenzie@pdh.com
Message-Id: <9402021847.AA17943@snowbird.pdh.com>
Content-Transfer-Encoding: 7BIT
Status: RO
> MiscProcess This class will handle running another
> process from an application in either the foreground or
> background.
>
Check out the Subprocess class in the Examples. It has "features" ;-) like only handling 1024 chars return from a command, but it's a start.
> MiscUnix (subclass MiscProcess) This will be an
> interface to standard UNIX file commands. Things like
> chmod, mv, cp, ln. Since this class is a subclass of
> MiscProcess, they should be able to run in foreground or
> background.
>
Actually, I think that a good number of these could be methods/categories of MiscFile. Perhaps it would be good to also have a MiscPipe class that takes a stream and returns a massaged stream.
> MiscFile This class will be used to handle generic file
> I/O. Presumably it would encompass most/all of the
> standard file I/O commands (getchar, putchar, printf,
> read, write, etc). This would be a great class to clean up
> all the file I/O that a program might use, replacing it
> with a clean class that would also make it more portable.
> When OpenStep comes out on the Sun's, a MiscFile could be
> written for Sun's SysVish file I/O. This class would have
> several subclasses then: MiscSerial, MiscSocket, ...
> Each of these classes would just add whatever extra
> capabilities were needed for dealing with those types of
> file descriptors. MiscLogFile would be replaced by
> MiscFile.
>
> MiscLogger (subclass MiscFile) This class would be a a
> facility for printing 'log' message. Each message would
> have a priority level given to it when the print message is
> sent, and the class could be told what priority levels to
> char *)format, ... If the current priority level is less
> than the one specified the message would or would not
> print, depending on how the class is designed. This class
> could be used for doing error/debugging output.
>
We have discussed this type of stuff, but have never put fingers to keyboard. We found that it's actually more interesting to have a mask instead of a level. Why not both?
> MiscMail This would allow the creation of a mail message
> from within an application. Standard mail only.
>
This is a 20 minute class: the objects of the class ARE mail messages that you can set up and ask to deliver themselves. Currently implemented through speaker/listener. Way cool. BTW, DolphinKit has this.
---
Bruce McKenzie (bruce@pdh.com, NeXTMail OK)
PDH Inc. 2635 N. First St. Ste 224, San Jose, CA 95134
voice: 408/428-9596, fax: 408/428-9599
Epicenter: Section 127, Row 22, Seats 13-14
"He's with the Office of Unforeseen Atomic Events."
* Opinions expressed are those of my own twisted mind, not my employer's *